package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/*用户对象
* */
@TableName("t_user")
public class UserBean {
    @TableId(value = "pk_stuId",type = IdType.AUTO)
    private Integer id;//用户id
    @TableField("u_username")
    private String userName;//用户名
    @TableField("u_pwd")
    private String pwd = "111";//初始密码
    @TableField("u_name")
    private String name;//真实姓名
    @TableField("u_grade")
    private String grade;//权限等级

    public UserBean() {
    }

    public UserBean(Integer id, String userName, String pwd, String name, String grade) {
        this.id = id;
        this.userName = userName;
        this.pwd = pwd;
        this.name = name;
        this.grade = grade;
    }

    public UserBean(String userName, String pwd, String name, String grade) {
        this.userName = userName;
        this.pwd = pwd;
        this.name = name;
        this.grade = grade;
    }

    public UserBean(String userName, String name, String grade) {
        this.userName = userName;
        this.name = name;
        this.grade = grade;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }
}
